From 27e019d758f4aa3cdbae469fb9c2fada5a021cfa Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 22 Sep 2008 13:41:07 +0100 Subject: [PATCH] x86,amd,microcode: fix hypercall return code Make the hypercall return failure if the microcode didn't apply. Signed-off-by: Christoph Egger --- xen/arch/x86/microcode_amd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xen/arch/x86/microcode_amd.c b/xen/arch/x86/microcode_amd.c index 77f4dd2a57..ca72f195af 100644 --- a/xen/arch/x86/microcode_amd.c +++ b/xen/arch/x86/microcode_amd.c @@ -337,10 +337,7 @@ static int cpu_request_microcode(int cpu, const void *buf, size_t size) * lets keep searching till the latest version */ if ( error == 1 ) - { - apply_microcode(cpu); - error = 0; - } + error = apply_microcode(cpu); xfree(mc); } if ( offset > 0 ) -- 2.30.2